home *** CD-ROM | disk | FTP | other *** search
/ MacWorld Secrets (4th Edition) / Mac Secrets CD 4th Ed.toast / Apple Advanced Technologies / Apple Speech Technologies 1.5 / PlainTalk Developer Info / Speech Recognition Manager SDK / SR Sample Code / IM SR Example / MyHasSpeechRecognitionMgr.c < prev    next >
C/C++ Source or Header  |  1996-03-31  |  359b  |  18 lines

  1. #include <Gestalt.h>
  2. #include <SpeechRecognition.h>
  3.  
  4. Boolean MyHasSpeechRecognitionMgr (void);
  5.  
  6. Boolean MyHasSpeechRecognitionMgr (void)
  7. {
  8.     OSErr        myErr;
  9.     long        mySRVersion;
  10.     Boolean        myHasSRMgr = false;
  11.     
  12.     myErr = Gestalt (gestaltSpeechRecognitionVersion, &mySRVersion);
  13.     if (!myErr)
  14.         if (mySRVersion >= 0x0150)
  15.             myHasSRMgr = true;
  16.     
  17.     return myHasSRMgr;
  18. }